%token	WORD  '\n'  '.'  ART   TRANS_VRB   COMM_NOUN   PROP_NOUN

%{
#include <stdio.h>
extern int yylex();
extern void yyerror();
%}

%%
Text	:         Sentence    '\n' 
                	{ fprintf(stderr,"Text "); }
                |  Text Sentence '\n'
                	{ fprintf(stderr,"Text"); }
                |  Text Sentence 
                	{ fprintf(stderr,"Text"); }
                |   Sentence 
                	{ fprintf(stderr,"Text"); }
                ;

Sentence	:      SubjVrbCplt    '.'
                	{ fprintf(stderr,"Sentence"); }
                ;

SubjVrbCplt :  NounGrp TRANS_VRB NounGrp 
                	{ fprintf(stderr,"SubjVrbCplt"); }
                ;

NounGrp :          PROP_NOUN
                	{ fprintf(stderr,"Noun grp "); }
               |   ART COMM_NOUN
                	{ fprintf(stderr,"ANoun grp"); }
%%
